﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParkingLot.Entitys
{
    public class ComboboxEntity<T>
    {
        private T m_ValueMember;
        /// <summary>
        /// 真实值
        /// </summary>
        public T ValueMember
        {
            get { return m_ValueMember; }
        }

        private string m_DisplayMember;

        /// <summary>
        /// 显示值
        /// </summary>
        public string DisplayMember
        {
            get { return m_DisplayMember; }
        }

        public ComboboxEntity(T t, string displayMember)
        {
            this.m_ValueMember = t;
            this.m_DisplayMember = displayMember;
        }
    }
}
